package com.lagou.edu.feign;

import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class CodeFallback implements CodeServiceFeign {
    private static final int VALIDATE_FAIL_CODE = 1;

    @Override
    public boolean createCode(String email) {
        return false;
    }

    @Override
    public int validate(String email, String code) {
        return VALIDATE_FAIL_CODE;
    }
}
